import {axiosInstance } from './config'

import {
    URL_HOMEPAGE,
    URL_HOTWORD,
    URL_HOTCOURSE,
    URL_SUGGESTION,
} from './url'

export const getHomeRequest=
    ()=>axiosInstance.get(URL_HOMEPAGE)

export const getHotWordRequest=
    ()=>axiosInstance.get(URL_HOTWORD)

export const getHotCourseRequest=
    ()=>axiosInstance.get(URL_HOTCOURSE)


export const getSuggestionListRequest=
    (query:string)=>axiosInstance.get(URL_SUGGESTION+'?'+`keyword=${query}`)